#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

void sort(const char* name[], int n)
{
	for (int i = 0; i < n - 1; i++)
	{
		for (int j = 0; j < n - i - 1; j++)
		{
			if (strcmp(name[j], name[j + 1]) > 0)
			{
				const char* t = name[j];
				name[j] = name[j + 1];
				name[j + 1] = t;
			}
		}
	}
}

int main()
{
	int i = 0;
	const char* name[4] = { "Follow","Great","FORTRAN","Computer" };
	sort(name, 4);
	for (i = 0; i < 4; i++)
	{
		printf("%s ", name[i]);
	}
	return 0;
}